package com.guigu.www.mapper;

import com.guigu.www.pojo.Quota;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author DengHao
 * @since 2021-10-21
 */
public interface QuotaMapper extends BaseMapper<Quota> {

    @Select("SELECT * FROM quota WHERE quota_id IN (\n" +
            "SELECT quota_id FROM quota_inner WHERE bes_pro_id = #{besProId})")
    Quota queryByBesProId(@Param("besProId") Integer besProId);
}
